//创建用户相关的小仓库
import { defineStore } from 'pinia';
let useUserStore = defineStore('user', {
    state: () => {
      return { counter: 0,
        userInfo:{}
       }
    },
    actions: {
      increment(value) {
        this.counter+= value;
      },
      updateUser(obj){
        this.userInfo = obj;
      }
    }
  })
  export default useUserStore;